﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using ZhonTai.Admin.Core.Entities;

namespace ZhonTai.Admin.Domain.Patrol
{
    /// <summary>
    /// 任务节点中的表单项
    /// </summary>
    [Table(Name = "patrol_tasknodeitem")]
    public class PatrolTaskNodeItemEntity : EntityBase
    {
        public long TaskId { get; set; }
        public long TaskConfigId { set; get; }

        public long TaskProcessId { set; get; }

        public long UserId { set; get; }
        /// <summary>
        /// 表单项属性名
        /// </summary>
        public string KeyName { get; set; }

        /// <summary>
        /// 表单项名称
        /// </summary>
        public string KeyAlise { get; set; }

        /// <summary>
        /// 属性类型
        /// </summary>
        public UniDataType UniDataType { get; set; }

        /// <summary>
        /// 表单项属性值-boolean
        /// </summary>
        public bool? Value_Boolean { get; set; }

        /// <summary>
        /// 表单项属性值-string
        /// </summary>
        public string Value_String { get; set; }

        /// <summary>
        /// 表单项属性值-long
        /// </summary>
        public long? Value_Long { get; set; }

        /// <summary>
        /// 表单项属性值-DateTime
        /// </summary>
        public DateTime? Value_DateTime { get; set; }

        /// <summary>
        /// 表单项属性值-double
        /// </summary>
        public double? Value_Double { get; set; }

        public string Value_Json { set; get; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; } = string.Empty;
    }
}
